package com.ld.security.common.core.base.entity;

import com.ld.security.common.core.base.po.SuperPo;

import java.util.Date;

/**
 * 基本原型
 */

public interface ESuperEntity extends SuperPo {

	void setId(String id);

	String getId();

	Date getCrtTime();

	void setCrtTime(Date crtTime);

	void setUptTime(Date uptTime);

	Date getUptTime();



	default boolean eq(ESuperEntity obj) {
			if (this.getId() == null) {
				return false;
			} else if (this.getId().equals(obj.getId())) {
				return true;
			}else {
				return true;
			}
	}

}
